added comment snippet
updated java snippets to fit my workflow