adding an optional spaces param
Merge pull request #1 from emkay/master

adding an optional spaces param