fixes, validation

added options validation, easier debugging (not completely finished),
updated README file, some small fixes