Refactored code

Removed packaged. Added as a single executable file.