Cleanup code, add notes on optimal authentication setup