Added JavaDoc to most of files package. Some issues left.