Final version 1.0

Tested and working.