cleaned up some code and added cert and .p12