Renamed metadata to state. Closes #8

Signed-off-by: Daniel Fagnan <dnfagnan@gmail.com>