added in notification modification and javadocs

-notification only happens if small chat window does not have focus