Text this: Description and implementation of the modified cam clay model