fix boolean settings, and improve code style for int settings, by using getboolean() and getint()
fix boolean settings, and improve code style for int settings, by using getboolean() and getint()

yishayv/lyacorr,yishayv/lyacorr