Separated ptw_file definition into ptw_type.h
Fixed linker error with multiple typedefs
Merge branch 'master' into get_ptw_frame