[WIP][issue #83] code modified to satisfy code conventions, and validation messages has been added