added namespaces, bug fixes

bugs: delete grad stop bug, closure compiler errors