renamed initWithPasses: to initWithNumPasses:
cleanup and mac fixes