added comment based help and fixed variable