finished sort option logic and style, abstracted some keypress methods, other style cleanup
added magnetize plugin, may incorporate at a later time