-added function Waynet:saveToFile(..)