Added CustomGrid dependencies and pep8-ified a lot of code.
Added CustomGrid dependencies and pep8-ified a lot of code.