Cleaned up data generation and added some anlysis

Analysis now has a function which tries to find some utility
advantage for students using random sampling.
Added functions and variables for capacit limit