Code clean and reformat
Inserted correct errors' message for table nnrelation
Added automatic Phing build support