added file support and removed unnecessary files