added annotated sourcecode