Added csv wrting (#5) and basic freehanding (#3)