Added more bootstrapping.
Fixed function name scope.
Added g:submit example.