fixed docstrings and drastically simplified the RLE stuff