Fixing file loading and documentation