Allocation concept and api change
Fixing batch execution, some housekeeping.
Javadocs and housekeeping.