Fixed profile and manual criteria logic. Added unit test template. Minor renderer fixes