Reformat all code

Closes #43.