issue #13 code cleanup

global $CONFIG removed. not needed here