Added more web interface. Fixed some index bugs.