1) change var name from 'from' and 'to' to 'from'' and 'to'',  as from and to are defined function in pp
2) restructure goaltype
3) support scala ui for pp
4) add example for scala pp ui