v.0.4.0

redesigned structure
improved memory management
improved stability
fixed all known bugs