php warnings removed, when in wp debug mode
using sprintf for html output in a few lines
Merge pull request #1 from patrickhafner/php-warning-fixes

small fixes