fixes #52 - added in grid logic
fixed demos
compiled v0.5.3