Error handling

Deleted communicator.java
Updated error handling