Catching exception in loadCode function
Minor changes...