Added an executable for testing purposes.
Added some testing, and fixed some stuff based on it!