documented mainActivity

Fixed errors in test cases