Reworked client so it is simpler to use
Bump version to 0.4.0