Added all the code and updated the read me.