uploading code

code as of 10/22/14