Fix for bug 17 : decrypt to file

* Set IO handle as UNINITIALISED instead of NULL.
* Add function to allow for checking init state of handle