some code cleanups.
adds APIDOC to svn ignore list
move some methods around