adds main soure code