Added code...

Added new functions, clearing files...