take index and type parameters from class attributes
take index and type parameters from class attributes
fix in main
readme update
pom update