Syntax fixes

Hi, as promised, just late. some fixes and additions to the rpm syntax.
the partial shell integration comes with another pull request.