Changed internal representation of TDB class;
Added --cluster-fbarrier option;
Reformatting of code - clustering split into more functions