fixed documentation of wiki functions
cleaned up some messy code around defining Activities