Code cleaning finished. Simple C++/Java interface added. Start experimenting with JSON.