handle extensions with their period still attached, added an example
Updating readme with better example