refactored, added basic file view

master