Fixed compiler warning, a crash when using -x -y -w and -h, and made the readme installation instructions more generic.