Worked on start function

Organized code a bit