cleaning up

* removing unused functions in windows def file
* removing now unused c_file_p
* simplifying read and tests