Added missing documentation and removed few functions.