fix some errors in encrypt method
fix more bug on encryption and define decryption method
add ckeck_key method
fix bugs on decryption method
update main file