Added Documentation;Fixed Returns Statements