Added new function checkv for placeholder variables
minor formatting change