updated lib and example

New example of a moving ship, which is under development.
Minor changes on the State class.