Addressing issue #4 with XML comments and type checks.