added manual directory check to datascripts
fixed errors and swapped dashed and solid lines in plot pwla function