General bug fixes and improvements

Please submit bug fixes and improvements. Someone needs to look at IE 10 support, which was a little shaky.