Added basic schematic support (fix #2) and fixed some script issues

*implemented feature request #2*

accidentally formatted some code, sorry