added Java source code
added lib directory and README
minor changes and fixes