Further doc comments

Clean up os functions