Started cluster creation code. Added template classes.