cleaned up os.nim; docgen improvements