make example use MediaType.whatever methods
fix mediaCmp if parameters are different
always quote parameters in .toString()
refactor .select() to be more flexible and remove forced .q
make example more readable