Added custom formatter for serialization + fixed open mode for files