Implemented file: added File class for missing file function, changed Fa...

...ctory to know File and added base_path to common.