added license to source code
picked safter data types; improved parser validation; fixed empty text parsing