finished debugging, removed debugging alerts and finished commenting