java 8 support

removing useless features and adapting code to use new java 8 features
java 8 support...tests passing