Updated documentation, removed unused variable.