added source and javadoc for lib