Add spec for core module methods.
Default arguments to reduce clutter.
Add missing stdlib require.
Add simple web endpoint example.