Finished commenting and otherwise refactoring. Fixed the custom regions, they should work consistently and flawlessly now