optimized code in a few places, added ability to track hash tag