Added doc blocks to lib/uac*.js and also some minor cleanup.