refactoring and comments
added const.py to isolate application constants