added https
Pre1: Finished basic functionality.