add type conversions and some spelling fixes