some fixes
fix encoding problem with special chars
shortcut for setting the hint flag on completion options
some completion improvements and cleanup (still not happy with it)