Minor improvements; fix
Avoids division by zero; fix
Namespacify
Fix psr-0
Restore previous state; fix local() => let()