closing file-stream after parsing the file
changed function-declaration to support inline functions