Added main() and fixed typo