Refactored analysis code.
Added frog analyzer code.