changed parameter order
formula formated
#121 implemented