Fixed bugfix in exception handling.
Initial makefiles added