Added auto feature, fixed bugs, improved gui