Cleaned up code after pulling out the text filter and infobar activity
fragments, and documented the fragments.