add some docstrings, fix adding buffers to main persp when loading from file, and other fixes and improvements