I fixed some potential future problems and added in some things that might help with communication for HTML and Java