Syntax fixes in stack and filepath fix to stack library file