added bin calc to application,
added conditions for bin mode,
logical error found in bincalc