whitespace and comments

Moved assert messages into the comments.
Adds additional setters and getters to ModelObject

Allows javascript classes to modify and access properties of the model
object without having direct access to the underlying vector interface.

Adding an isDead property gives the class an invalid state without
manually modifying the memory.