Fix seed for random number generator

NULL -> 1 in time() to fix seed.
Added *.o to .gitignore
Updated .gitignore

Now .gitignore includes files that are created during make