Revert "Removed some prints and fixed some errors"

This reverts commit c704714dddcb7284afa77ef88edbd6bb8b7565b0.