setup prepublish task

tuned export logic
adding code for peg
tuned travis