fixed converter from decimals (rewriten to jsbn2), added reverse conversion