General refactoring & documentation enhancements

Added input validation to page settings activity