refactoring, minor change

- frequency instead of noteFrequency
- add parenthesis to if
- remove intermediat statement "Set<String> keys =
getChilds().keySet();"
- getXXXList should return a List instead of LinkedList