added defaults properties file, and refactored handling arguments