minor fixes
resolved issue with base, moved examples js files to lib folder
added some defaults