Moved type functions from general, improved readme