Added documentation images and a few bug fixes.