Fixed IllegalMonitorStateException (notifyAll when not synchronized), made Communicator auto-closable, deleted left-over debugging statements, and updated gitignore