new|Ported test and Demo script to Linux

Tested on Ubuntu 12.04