Rename Unit.prototype.data to Unit.prototype.main

closes #197