basic file reader and data converter function
first batch of unittests