Commented uneccessary prints, and removed extra unused functions