initial decoder files
no average
restored total prob instead of average
added more helper functions