Added documentation, clarified naming.