generalized binary print
added binary code type
rewrited binary code printing
rewrited getPath in a more neat way
removed one excess iteration