Added method for getting inputs

Also added comments everywhere
git2hard