removed unrequired include
refactoring related to boost::format and boost::str
fixed batch type conversion