add UTF8 BOM removing option when reading a CSV and do some optimizations
fix coding style