file processing implemented & added tests