Refactoring code. Updated layout of invoice. Added validator plugin