completed javadocs, changed some access modifiers