Added documentation, simplified interface to package.