removed redundant code
added documentation links