Added license header, remove, min/max, started unit testing