Documentation of automation classes

Also, warning free code is happy code.
Removed unused imports and unclosed streams
out the wazoo.