Update platform definitions
Add chunk markers and refactor scripts