tidying up

removed some unused functions, corrected and updated comments, added
'selcom' to test
final changes

corrected comments, added documentation draft, deleted unused functions
Merge pull request #6 from niamhdh/firstbranch

Firstbranch