Added full comments for annotation.py