Initial commit

Code tested and working, finishing HW questions
Added my suggestions
Merge pull request #1 from andyshear/shearar

Shearar