Finished off documentation and tests