serveral improvements

cleaned stuff, added a write method for text on multiple lines (needs to be written in Communication.js though) and commented a bit