bugfix in convertion from decimal to binary
main class is now a singleton class