Added docs. Fixed references.