Some cleanups and added docs to selection attribute and event