upd to java8; convert to maven pr; add functionality