Added some notes on how to improve perfomance
Fixed argument passing