Makefile fixed, exceptions replaced with runtime_errors