global variables support
cleanup comments

Closes #182