moved all code into src directory