filename now allows spaces, added getSync, updated tests and examples