added cluster parameter, supplied simple documentation and examples