Added SamplerState purging and started entry point code