fixed ranges, refreshing and other little stuff ... intruduced new globals and new features