Added comments and example advanced use