Finished refactoring. Closes #22.
Output power data to text file. closes #14