Add checkMandatoryParams method.
Refactor App class.