Fixed some facet issues

- In some rare cases facetting could faild because of an defective check
- Removed onchange attr because it is not needed
- Code improvements
- Added documentation
- Fixed typo

Change-Id: Ib71b3650aed8ed5d76fd01ecf49ca4a63315f230