fixes for makefile, minor other changes
doc update
sync functions
doc update