Moved source files into src folder, added terminal helper functions