added example and library arrangement also added Java-Doc