Documentation for all modules but PC interface done. Removal of some unused code. Some tidying up.