added examples and more testes, fixed generics bugs etc, added lint