deletes dead code
refactoring
adds comments and delets one line dead code
refactors actions dictionary in class variable
adds the TestServerComunication test
bugfixes
imports unittest (bugfix)
adds test flag