tidying up

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