added toString to alarm, and fixed fragment manager usage in activities and fragments