Adapted most the code and wrote a basic menu interface. Copy is not yet working properly as padding/hmac has not yet been properly adapted.