Removed unecessary commented out line
Added file-system based caching; this really speeds things up for us
Added a way to generate the whole regulation, refactored code so that we reuse