Moved the cloud code in a separate file.
Simplified a bit the stuff around width, height.
Simplified / moved cloud cleanup logic.
Hacked the module to be new-able.