Add return status code to the command line Main method

This patch makes the Main methods of DocumentValidator command to return a status code. After this patch is applied, DocumentValidator command returns -1 when the command failed to validate.