added occurrence lookup fxn, closes #103