Delete trailing whitespace
Refactoring and fixing
Use 127.0.0.1 instead of localhost
Refactor
Move some stuff to Util module
Error handling and "send" command