try to limit memory usage
more idiomatic code
bumped version to 0.0.4
updated gitignore