add bower, update package.json
elaborate code comments, more tests