Added some basic analysis functionality. Still have some more to add.