cleanup formatting
set headers for access control
flesh out docs