Fix #8
Added error handling functionalities for number of arguments and their value