Intrinsics added

Added function to set intrinsics. Set the intrinsics in the main body.