Added serve implementation. Works as intended.

Also added .gitignore