Updated PS6

Implemented file handling and added some functionality