Updated docs with examples and added demo code.