fixed clean-target
replaced tabs with spaces (except makefile-rules)
implemented compatibility for X11 platforms
fixed header comments
moved utility functions to seperate files
updated readme