Calculates and displays the correct time
Wrote sighandler for termination signals.

It kills all child processes and then exits.
General cleanup

No more warnings when compiling, removed debug prints, fixed other prints etc.