Added getNextID method

Added getNextID, minCapacity methods.