removed some commented out code
external references added