Added filehandler and did some formating changes all are compileing at
the moment