Fixing code identation
Adding auto register file