Remove empty category
Added generic function parsing support
Made example shorter
Detect types