Fix typo
Add doxygen comments to phase.h
Use proper return value