add file saving
add updated usage example