figure function is currently causing more problems than it's solving
a few style adjustments
PHPDoc blocks
version bump