changed `load_file` to a class method

solves #28 changed `load_file` to a class method