Add tests
Wrap loose code in CellularAutomata.jl into functions
Update Readme documentation for tests