fixed bug
fixed bug, added comments to cloud code