updated some comments, learned about javascript prototyping