remove Corona stuff
update comments
cache global functions