don't allow empty names to be added
refactoring AS library. adding "justSwapped" and "highlight".
changing AS functions to accept index or sortObject