First draft done!

Fixed english, warnings, references, and other items. Still needs final polishing.