Changed some typos within functions and added str method