classless version final, added mobile support
Complete code overhaul.