Added tests for initializing with an error.

Added some documentation to the Phalanx constructor function.