Fixed normalize flag bug.
removed debugging BP
update
Added batch support and cleaned small bugs
Initial