added multiprocess for registering worker as online and unit tests. Pep 8 fixes