Updated ORM code a bit

Added basic functionality to Command class
Added ability to remove redundant commands from a batch
Not 100% happy about getting data to and from the generator/batch
code...