Removed unneeded functionality and added documentation.