Publishing version 0.4.0 based on Jingo. Fully rewritten. Simplified.