added details argument to exception constructors
fixed typo
only include : if detail not null
Merge pull request #2 from Andersmholmgren/master

Added an optional detail argument to add more info to the message