added copyright notice to src
added type javadoc
manually hint the GC to do its work after task completion