started adding additional functions and fixed some typos