Added Code

Initital commit, adding all relevant source code