added namespaces
minor fixes
added works method
added tests and made JSave work