Initial upload

Initial upload of the codebase.
Comments/documentation forthcoming...