I certainly wouldn't spell it 'grotty'. Looks like it would be pronounced <grahtty>. It's 'groty' or 'grody'.

And kluge isn't spelled kludge