Miles

This is the latest updates on the code from Miles as of 11/20/2014.