added os to imports; typos fixed