Codes which might come in handy. No error handling implemented. No documentation as of now. Will soon put it.