Changed single quotes to double quotes.
Replaced if-condition with short ciruit evaluation.
Added document for the optional maxage parameter.
Bumped version number.