Documentation update

Updated documentation for building, data format and some comments in the
code.