Add some comments and clean SW renderer code

This commit adds some more commenting to the software blitting functions,
and cleans up the code a bit. Perhaps also a very minor speed boost, since the
pixels skip checks are now done first.