More code, more tests. Stared work on web interface.