Refactoring

* Removed alot of console.log's
* Added better error messages
* Updated prompt for better polyfill
* Added json in test for better simulation of the communication channel
* Added test for passing objects
* Consistency when sending arguments to client
* Updated templates