Restructuring
Convert bytes to string before passing json to calculation
Working on docstrings