initial commit
add error handling to stack
remove Singletons