added support for spaces in the ore name
support for already present formulas
some comments
tiny bug
updated for tool use
examples updated