Add code to repository

Adding the bulk of the code to the public repository