Fixes #19. Added onlyasc option, plus minor bugfixes.