closes #42 with tests and implementation for toxls