Lots of small edits to formatting

Changing signatures; changing " to ' to make code a bit prettier.