use ` instead of " for strings, fix declaration of err variable
closes #1