restructured code to module directories; refactored constants out to module file; updated imports