PEP8 fixes
refactor functions to return DataFrames

- adds to_csv function to output DataFrame with consistent formatting
- all calls to np.savetxt changed to return DataFrames for better
  reusability
Merge pull request #40 from talumbau/df_refactor

Refactor functions into DataFrames