added utility function for wrapping synchronous values in promises
added a list of examples to index; added sync dotmap example