add more functions to km.lib
update sync.sh with new library name

On branch master
Changes to be committed:

	modified:   lib/km.lib
	modified:   sync.sh