Added check for mandatory arguments and updated README