Refactor initial variables and start on bounds
Edge boundaries implemented, boundaries made flexible