introduced file saving and rewrote indexing method.
implemented automatic directory structure generation
loading error message