Some JavaDoc and added setCapacity() methods to array-based stacks