Solved all Warnings. Fixed an error when trying to read from a closed input stream.