minor doco update
minor code tidy
added type conversion for data read by data.table