adds the code

adds all of the code to make this work
updates readme and comments