Fixes, tweaks, documentation

Bug fixes and documentation edits/additions. Tested on a fresh Debian 7 64 bit box.