Add initial script

This is not quite correct yet, especially with regard to some sub-code
parsing but it is a useful starting point.