for the bags u can use a razor blade or similar if they really do have alot of crystals, then just put it straight in a joint
to get it out a grinder well cant u just tap it really hard over a joint, all mine come out then, and if u mean the green shit that gets stuck to the side then just scrape it out with a key not hard, but i dunno about smoking that since i occasionaly put wax in my grinder