Made code prettier, added credits where needed