Removed extra io:formats, fixed grammar in error message