CHANGED API; added writeToComputer method