Fixes reference, documentation errors