now works silently
slimmed down llog
made localpi more general
tidied up
updated for all files on initial commit
initial commit