various fixes

fixed syntax, added self checking for version, added a statement to
print the runtime, various comments