fix bug when parsing resolution
improve docs