changed source config to java 8
added some java 8 features