Moved sources to src directory, implemented base functionality