Remove print statements, convert layer.id to string and fix bbox refs