made entity class abstract
added licence file