Add openssl, and refactor some code

This PR adds in the makefile for building openssl, and also updates some of the existing code to fix typos, update style, etc. etc.