Added parameter validation
Improved README instruction and removed unnused file.