fixed exceptions in Core.java
deleted temp code