Fixed #1, updated documentation.