added gemfiles
added files to switch branches
numerical validation, cleaned up templates