Renamed a slew of things. Fixed the bug where the file output stream was
being closed prior to the cipher, causing the last bit of the decrypted
file to be lost. Fixed the bug where the file was being unlocked too
soon and an infinite loop of updates occurred.