Updated libraries.
comments added to ui.js (fixes #22)