Added a lot of logging to decoder.cpp + fixed bug with pushing in stack