Create genesis block, fix bugs