Bug fix

 - Add exception handling in file_operation.hpp.
 - Other small bug fix.