Added a main function, so it is easier to use it.
Added instructions.