Parsing/loading errors fixed
Refactor all variables with name 'file' to avoid name conflict with standard file object