Refs #2. Have it working by hand now.
Refs #2. Adding phase setter and documentation.