added base path constant, fixed base paths fo libraries, running core library and handling of exception