it can now be run as a console app and installed as a service on windows
close #4