Restructuring sike code and functions to fit in better with testing and better error handling.