Added CommandHandler.java and finished core functionality