Fixed small things in the BPA. Added a lot of JavaDoc everywhere