added server CLI option, fixed gold > Integer.MAX_VALUE (converted to long), minor tweaks