Minor code formatting changes and inverted an if statement.
Update demos and docs for new injectorModules feature and dependency injection on resolve functions.