some work on file auto detect

working autodetect support
update README`