Updated documentation and deleted deprecated functions