w enabled writing, a enables writing (in append mode). added a usage message if no args are provided