Clean up

Added viewport code, updated modal code, cleaned up line tabs. Removed
Demo.html