Merging new code base
Added new code under newCode app; making new code ompatible with current code base. Main page template added and tested.