Priority Queue preliminaries, new exception for invalid capacities,
updated Javadoc