[JAVA] Use latch instead of semaphore + fix stepPrint

Other stuff:
- Add more javadocs
- printStackTraces only in debug mode
- Sim. threads return on exception