added bin2dec + fixed an error