Fixed a potential syntax error.
Added more constructor features and tests.
Fixed potential doxygen error.