Moved code into the src directory.
Moved types to its own module.