Finished all main functions. All tested and working. Now fixing cipher() and invCipher()