Share the code to choose the number of threads and the go button #73

* Error check the number of threads
Add javadoc to gobutton