Refactoring: moved all code into src/ directory