Refactored source code into src directory.