Added a file parser with some functions