added javadoc
Lottery backend system