added script extension to allow easy access to settings from programs menu
move files to core/lib
cosmetics