Added code

Added the current codebase. Improvements to come.