Added functions
Fixed spelling errors
Works, kinda