IM: Intermediate sheargen function

- Needs to be tested (tonight)
- Integrated with input (tonight)

Tomorrow, you can have tables showing the tabular outputs.