writetofile, velocityprofile added. PLotting and write to file works fine