fixed stuff

done
Started this

Finds the best type