tests and corrections, Ubuntu 14.04 version almost finished and tested