Added general exception handling, added core scripts