Don't forget to close the file stream.
Added UBUS API documentation.