minor updates

better pkg checking with tidy option
update docs