Added selectAll, added demos, cosmetics.

Added selectAll option and demos. Further cosmetics, comments etc. .