update javadoc &move some enum to io package