added detailed examples and corrected readme