fixed saving; improved documentation; minor fixes