Clean up, comment
Add credential handling for https