Fixed zero input not working error. Restructred lib directory