Fix type error in sample code

Map[String,String].apply() doesn't return an option, Map[String,String].get does
Merge pull request #165 from leeavital/master

Fix type error in sample code