Implemented better activity invoking and parameter passing, resolved #8.