Added cloud and coin feature.

Also fixed some minor bugs.