Set writes to file
updated tests
added ListenAndServe
updated docs