Edited typos

Changed redeclaration error and added single return