Update project files
Refactor code
Add config.failOnError property
Remove redundant code
Update README