various bug fixes for first implementation.  Changes in css and some small adjustments in test.html