fixed main, and an inconsistency in crypto.hpp