Code smart contract

Main part of the contract is published now: https://github.com/algoland