Add requirements.txt for pip, fix setup.py and start script
Small refactoring and cleaning code (adding comments)