Update gk.framework.php

Fixing up some of the poorly written code