Added license to all files + fixed javadoc problems. Working on gradle publishing