JavaDoc & Exceptions

Added javaDoc and exceptions for the queue class