create java_libs directory if it does not exist
clean up and adding full read function