Implemented purgeDatastream() and isDatastreamExists() methods and removed comments.