Added stack input example
Removed loader (don't really need it)
A tidied up the code